require 'import'
import 'android.content.Intent'
import 'java.*'
import "android.net.Uri"
browserIntent =  Intent(Intent.ACTION_VIEW, Uri.parse("http://bard.google.com/chat?hl=en"));
service.startActivity(browserIntent);


service.postClick(4200,{{
"Open upload image menu$800",
"Camera$2500",
"%takePhotoAsus",
"#center button container|button_capture|shutter button$4000",
"#okay|accpet|review_button_done|done button$1900",
"%scrie$1500",
"%sendMessage",
}})
scrie=function()
service.setText("describe image")

return true
end
takePhotoAsus=function()
this.longClick(this.findAccessibilityNodeInfo("#button_capture"))
return true
end

sendMessage=function()
this.longClick(this.findAccessibilityNodeInfo("Send message"))
return true
end